/*
 * @Author: hyman
 * @Date: 2021-12-30 21:08:00
 * @LastEditors: hyman
 * @LastEditTime: 2021-12-30 21:09:39
 * @Description: 请填写简介
 */
import createPersistedState from "vuex-persistedstate";
import CookieStorage from "./cookie-storage.js";

const persistedState = createPersistedState({
  // 默认存储到localStorage
  //   storage: window.localStorage

  // 存储到cookie
  storage: CookieStorage,
});

export default persistedState;

